# Humm and Strumm Video Game
# Copyright (C) 2008-2011, the people listed in the AUTHORS file. 
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Uninstall.cmake -- Adds the ability to uninstall the program from the system
# once it has been installed.

# Add uninstall target!
configure_file (
  "${hummstrumm_SOURCE_DIR}/cmake/UninstallInternal.cmake.in"
  "${hummstrumm_BINARY_DIR}/cmake/UninstallInternal.cmake"
  IMMEDIATE @ONLY)
set_property (DIRECTORY APPEND PROPERTY
	      ADDITIONAL_MAKE_CLEAN_FILES ${hummstrumm_BINARY_DIR}/cmake/UninstallInternal.cmake)


add_custom_target (uninstall
  "${CMAKE_COMMAND}" -P "${hummstrumm_BINARY_DIR}/cmake/UninstallInternal.cmake")